/**
 * Desenvolvido pela Fábrica de Software do CESUPA.
 * Todos os direitos reservados.
 */
package br.cesupa.fabsoft.nomedoprojeto.modules.helpmodule.beans;

import br.cesupa.fabsoft.nomedoprojeto.modules.systemmodule.beans.SessionBean;

/**
 *
 * @author Breno Leite
 */
public class HelpSearchBean {

    /**
     * The query used to filter information on the help topics.
     */
    private String query;

    public HelpSearchBean() {
    }

    /**
     * Searchs the help content directory using the defined search query.
     *
     * @return  the page search flag
     */
    public String search() {
        SessionBean.getCurrentInstance().setSearchQuery(query);
        return "HELP.goToHelpSearchResults";
    }

    /**
     * @return the query
     */
    public String getQuery() {
        return query;
    }

    /**
     * @param query the query to set
     */
    public void setQuery(String query) {
        this.query = query;
    }
}